package com.vogue.supplymall.shop.domain.dao;

import com.vogue.supplymall.shop.domain.model.OrganShopImg;

import java.util.List;

/**
 * The interface Organ shop img dao.
 *
 * @Aouthor: zhangliang
 * @Date: Create in 2017-12-12
 */
public interface OrganShopImgDao extends BaseDao<OrganShopImg, Long> {

    /**
     * Find by sys code product.
     *
     * @param sysCode the sys code
     * @param organid the organid
     * @return the product
     */
    List<OrganShopImg> findBySysCode(Long sysCode,Long organid);
    
    /**
     * 根据syscodeid和organtype得到企业图片，如果店铺没有图片，就用企业图片
     */
    public List<OrganShopImg> findEntImgBySysCode(Long sysCodeId);

    /**
     * 通过店铺id 获取 店铺图片url
     * @param shopid
     * @return
     */
    String getImgUrl4Comment(String shopid);
}
